﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Wix.Aura.Common {
	public class Verb : IXmlSerializable {
		private Verb() { }
		public Verb(string id) {
			Id = id;
		}

		public string Id { get; set; }
		public string Argument { get; set; }
		public string Command { get; set; }
		public int? Sequence { get; set; }
		public string Target { get; set; }
		public string TargetFile { get; set; }
		public string TargetProperty { get; set; }

		public System.Xml.Schema.XmlSchema GetSchema() {
			throw new NotImplementedException();
		}

		public void ReadXml(System.Xml.XmlReader reader) {
			throw new NotImplementedException();
		}

		public void WriteXml(System.Xml.XmlWriter writer) {
			writer.WriteStartElement("Verb");
			writer.WriteAttribute("Id", Id);
			writer.WriteAttribute("Argument", Argument);
			writer.WriteAttribute("Command", Command);
			writer.WriteAttribute("Sequence", Sequence);
			writer.WriteAttribute("Target", Target);
			writer.WriteAttribute("TargetFile", TargetFile);
			writer.WriteAttribute("TargetProperty", TargetProperty);
			writer.WriteEndElement();
		}
	}
}
